export default [
  {
    path: "/directives",
    meta: {
      title: "自定义指令",
      icon: "icon-houtaiguanlixitong_chaobiaoyewu",
    },
    redirect: "/directives/copy",
    children: [
      {
        path: "/directives/copy",
        component: () => import("@/views/directives/copy.vue"),
        meta: {
          title: "点击复制",
        },
      },
      {
        path: "/directives/clickOutside",
        component: () => import("@/views/directives/clickOutside.vue"),
        meta: {
          title: "点击外部元素",
        },
      },
      {
        path: "/directives/banRightClick",
        component: () => import("@/views/directives/banRightClick.vue"),
        meta: {
          title: "禁止鼠标右键",
        },
      },
      {
        path: "/directives/longPress",
        component: () => import("@/views/directives/longPress.vue"),
        meta: {
          title: "长按事件",
        },
      },
      {
        path: "/directives/rightClickMenu",
        component: () => import("@/views/directives/rightClickMenu.vue"),
        meta: {
          title: "鼠标右键菜单",
        },
      },
      {
        path: "/directives/waterMarker",
        component: () => import("@/views/directives/waterMarker.vue"),
        meta: {
          title: "水印",
        },
      },
      {
        path: "/directives/resize",
        component: () => import("@/views/directives/resize.vue"),
        meta: {
          title: "监听元素尺寸变化",
        },
      },
      {
        path: "/directives/highlightText",
        component: () => import("@/views/directives/highlightText.vue"),
        meta: {
          title: "高亮文本",
        },
      },
    ],
  },
];
